<input type="hidden" value="${query}" id="query" />
<#if audioFiles??>
	<#assign pageSize = audioFiles.pageSize>	
	<#assign start = (page - 1) * pageSize + 1>
	<#assign files = audioFiles.files>
	<#assign size = files?size>	
	<#include "/macro/utils.ftl">
  	<div class="mp3Download_column">
		<div class="search_keyword">Search results for " <strong>${query}</strong> "</div>
    </div>
    
	<div class="mp3Download_list">
		<ul>
    	<#if size &gt; 0>
        	<#list files as file>
           	<li>
	        	<strong class="num">${file_index+1}</strong>
	            <dl class="list_cont">
	            	<dt><a href="#" class="music_title"><@fromatTitle  '' file.filename!'' 75 75 /></a></dt>
	            	<dd> <#if file.bitrate!=0 >${file.bitrate} kbps
                        	<#if file.duration!=0 > | &nbsp;<@formatSeconds file.duration/></#if><#if file.size??>| &nbsp;${file.size}</#if>&nbsp;
                        	<#elseif file.duration!=0 >
                        		<@formatSeconds file.duration/><#if file.size??>| &nbsp;${file.size}</#if>&nbsp;
                        	<#else>
                        		<#if file.size??>${file.size}</#if>&nbsp;	
                        </#if></dd>
	            </dl>
	            <a href="javascript:;" class="btn_play3 btn1" file="file=${file.downloadUrl?url}&volume=50&autostart=true" filename="${file.filename}" >Play</a>
	            <a href="${file.downloadUrl}" target="_blank" onclick="_gaq.push(['_trackEvent', 'music', 'Download', '${file.filename}']);" class="btn_down3 btn2">Download</a>
	            <div class="clear"></div>
	            <div class=""></div>
	        </li>
            </#list>
        <#elseif !audioFiles.copyright>
        	<div class="music-result-keyword">Sorry, the result for <span>"${query}"</span> is not allowed due to copyright reason.</div>
        <#else>
            <div class="music-result-keyword">No results for <span>"${query}"</span></div>
        </#if>
        </ul>
        
        <div class="clear"></div>
		<#assign pageCount = audioFiles.pageCount>   				
        <#if pageCount &gt; 1>
		<div id="page_box">
			<#if pageCount &gt; 1>
				<#include "/macro/new_pager.ftl">	
				<#assign preUrl = contextPath + "/i18n/music/${query}/{page}">	
				<@pager preUrl page pageCount/>	
			</#if>		
		</div>
		</#if>
    </div>
<#else>
   <div class="music-result-keyword">No results for <span>"${query}"</span></div>
</#if>
